Help > Reference > Macros > Document object > Metadata property

Metadata property

This property returns Metadata Collection object that can be used to retrieve the metadata of the document.

Member of

Document

Type

Read-Only Variant Property (Metadata Collection)

The example below extracts the metadata of the first document in the search results to file "c:\output.txt".

Example

Set FSO = CreateObject("Scripting.FileSystemObject")
Set Output = FSO.CreateTextFile("c:\output.txt", True)
Set Meta = App.ActiveTab.Item(0).Metadata
For I = 0 To Meta.Count-1
  Output.WriteLine Meta.Key(I) & " - " & Meta(I)
Next

See Also

Macro Object Model

Document